package com.sky.dto.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * 通用查询参数类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QueryParams implements Serializable {
    /**开始时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;
    /**结束时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
    /**当前时间*/
    private LocalDate date;
    /**查询id*/
    private String  id;
    /**查询id列表*/
    private List<String> ids;
    /**名称*/
    private String name;
    /**查询关键字*/
    private String keyword;
    /**查询状态*/
    private Integer status;
    /**查询性别*/
    private Integer sex;
    /**部门id*/
    private String departmentId;
    /**查询部门id列表*/
    private List<String> departmentIds;
    /**额外参数*/
    private Integer extra;
}
